﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Presoncontol : MonoBehaviour
{
    public GameObject FirstCamera;
    public GameObject SecondCamera;
    void Start()
    {

    }


    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.P))
        {
            FirstCamera.SetActive(true);
            SecondCamera.SetActive(false);
            //FirstCamera.GetComponent<Camera>().depth = 0;

        }
        if (Input.GetKeyDown(KeyCode.L))
        {
            FirstCamera.SetActive(false);
            SecondCamera.SetActive(true);
            //FirstCamera.GetComponent<Camera>().depth = -1;

        }
    }
}
